﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyHistory.ascx.cs" Inherits="Gollie.Controls.MyHistory" %>
<%@ Register Src="~/Controls/VendorPresenter.ascx" TagPrefix="uc1" TagName="VendorPresenter" %>

<p class="title">Mijn transacties</p>

<table>
    <tr>
        <td>Bedrijf</td><td>Datum van</td><td>Datum tot en met</td><td></td>
    </tr>
    <tr>
        <td><asp:DropDownList ID="ddlVendors" runat="server" AutoPostBack="true"></asp:DropDownList></td><td><asp:TextBox runat="server" ID="tbFilterDateFrom" CssClass="input-datepicker" ClientIDMode="Static" AutoPostBack="true"></asp:TextBox></td><td><asp:TextBox runat="server" ID="tbFilterDateTo" CssClass="input-datepicker" ClientIDMode="Static" AutoPostBack="true"></asp:TextBox></td>
        <td><asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/Images/search-icon2.png" Width="38" Height="24" style="margin-bottom:0px;" OnClick="btnSearch_Click" ToolTip="Ververs"/></td>
    </tr>
</table>

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="0" ForeColor="#333333" GridLines="None"  HorizontalAlign="Center" ShowHeaderWhenEmpty="True" Width="100%" OnRowDataBound="GridView1_RowDataBound" AllowSorting="true" OnSorting="GridView1_Sorting">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:TemplateField HeaderText="">
              <ItemTemplate>
                <asp:HiddenField ID="fldVendorId" runat="server" Value='<%#Eval("VendorId")%>' />
                <asp:HiddenField ID="fldBedrijfsnaam" runat="server" Value='<%#Eval("Bedrijfsnaam")%>' />
                <asp:HiddenField ID="fldWebsite" runat="server" Value='<%#Eval("Website")%>' />
                <asp:HiddenField ID="fldPlaats" runat="server" Value='<%#Eval("Plaats")%>' />
                <asp:HiddenField ID="fldStraat" runat="server" Value='<%#Eval("Straat")%>' />

             </ItemTemplate>
                <HeaderStyle CssClass="offer-grid-header-quick" />
                <ItemStyle CssClass="offer-grid-vendor" />
            </asp:TemplateField>

            <asp:HyperLinkField DataNavigateUrlFields="Website" DataTextField="Bedrijfsnaam" HeaderText="Aanbieder" Target="_blank" ControlStyle-CssClass="common" SortExpression="Website">
            <ControlStyle CssClass="common"></ControlStyle>
            <HeaderStyle CssClass="offer-grid-header-quick" />
            <ItemStyle CssClass="offer-grid-cell-quick" />
            </asp:HyperLinkField>

            <asp:BoundField DataField="Plaats" HeaderText="Plaats" SortExpression="Plaats">
            <HeaderStyle CssClass="offer-grid-header-quick" />
            <ItemStyle CssClass="offer-grid-cell-quick" />
            </asp:BoundField>

            <asp:BoundField DataField="Tijdstip" HeaderText="Tijdstip" DataFormatString="{0:dd-MMM-yyyy, HH:mm:ss}" SortExpression="Tijdstip">
            <HeaderStyle CssClass="offer-grid-header-quick" />
            <ItemStyle CssClass="offer-grid-cell-quick" />
            </asp:BoundField>

            <asp:BoundField DataField="Bedrag" DataFormatString="{0:c}" HeaderText="Bedrag" SortExpression="Bedrag">
            <HeaderStyle CssClass="saldi-header-right" />
            <ItemStyle CssClass="saldi-cell-right" />
            </asp:BoundField>

         </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#000000" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#000000" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
